#include "RunPrevValue.h"

RunPrevValue::RunPrevValue() {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
	Requires(Robot::shooter);
}

// Called just before this Command runs the first time
void RunPrevValue::Initialize() {
	SetTimeout(1);
}

// Called repeatedly when this Command is scheduled to run
void RunPrevValue::Execute() {
	double value = Robot::shooter->getValue();
	Robot::shooter->ShooterWithDial(value, value);
}

// Make this return true when this Command no longer needs to run execute()
bool RunPrevValue::IsFinished() {
	return true;
}

// Called once after isFinished returns true
void RunPrevValue::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void RunPrevValue::Interrupted() {
}
